﻿using System;

using Storm.TextEditor.Parser.Objects;

namespace Storm.TextEditor.Drawing
{
    /// <summary>
    /// Holds information on the RenderMargin event of the DefaultPainter.
    /// </summary>
    public class RenderMarginEventArgs
        : EventArgs
    {
        #region Fields

        private Row row = null;

        #endregion

        #region Properties

        /// <summary>
        /// Gets the Row of the RenderMarginEventArgs.
        /// </summary>
        public Row Row
        {
            get { return row; }
            private set { row = value; }
        }

        #endregion

        /// <summary>
        /// Initializes a new instance of RenderMarginEventArgs.
        /// </summary>
        public RenderMarginEventArgs()
        {
        }

        /// <summary>
        /// Initializes a new instance of RenderMarginEventArgs.
        /// </summary>
        /// <param name="row">Row of the RenderMarginEventArgs.</param>
        public RenderMarginEventArgs(Row row)
        {
            this.Row = row;
        }
    }
}
